package com.lizhi.yun.db.sfrobot.repository;

import com.lizhi.yun.db.sfrobot.entity.Doctor;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DoctorRepo extends JpaRepository<Doctor, Long>, JpaSpecificationExecutor<Doctor> {

    Doctor findByIdAndHospitalIdAndHospitalSystemId(Long id, String hospitalId, String hospitalSystemId);

    List<Doctor> findAllByAccountAndHospitalId(String account, String hospitalId);
}
